package day06Case02;

import day06Case01.Print_Array;

import java.util.Scanner;

/**
 * @author Xiao
 * @date 2021/7/6
 */
public class ScannerArray {
    /**
     *      需求：
     *          键盘录入6个int类型数据存放到数组arr中
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[6];
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请输入第" + (i + 1) + "个数：");
            arr[i] = sc.nextInt();
        }
        System.out.println("-------------");
        System.out.println("arr:");
        Print_Array.printArray(arr);
    }

}
